<template>
  <div class="app-container">
    <el-button
      :type="show ? 'primary' : ''"
      size="medium"
      @click="changeShow(true)"
      >用例执行</el-button
    >
    <el-button
      :type="show ? '' : 'primary'"
      size="medium"
      @click="changeShow(false)"
      >用例新增</el-button
    >
    <exec v-if="show"></exec>
    <add v-else></add>
  </div>
</template>

<script>
import add from "./add.vue";
import exec from "./exec.vue";
export default {
  data() {
    return {
      show: true,
    };
  },
  components: {
    add,
    exec,
  },
  methods: {
    changeShow(show) {
      this.show = show;
    },
  },
};
</script>

